#include "obj_range.h"

/**
 * @brief 新建range对象
*/
ObjRange* new_objRange(VM *vm, int from, int to)
{
    ObjRange *obj_range = ALLOCATE(vm, ObjRange);
    init_objheader(vm, &obj_range->obj_header, OT_RANGE, vm->range_class);
    obj_range->from = from;
    obj_range->to = to;
    return obj_range;
}